﻿using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using Plugins.Themes;

namespace Plugins.Controls
{
    public partial class PluginStatusStrip : StatusStrip
    {
        public PluginStatusStrip()
        {
            InitializeComponent();
            LoadToolStripRenderer();
            LoadColors();
        }

        public PluginStatusStrip(IContainer container)
            : this()
        {
            if (container != null)
            {
                container.Add(this);
            }
        }

        private void LoadToolStripRenderer()
        {
            ToolStripRenderer pro = new PluginProfessionalRenderer();
            this.RenderMode = ToolStripRenderMode.ManagerRenderMode;
            this.Renderer = pro;
        }

        private void LoadColors()
        {
            BackColor = Color.Black;
            ForeColor = Color.White;
        }
    }
}
